<?php
	
	$path = '..';
	//$path = '/home/collabor/testing4';	
	set_include_path(get_include_path().PATH_SEPARATOR."$path/php_library");	
	require_once('Zend/Config/Xml.php');
	$GLOBAL = new Zend_Config_Xml("$path/config/config.xml",'global', true);
	$CONFIG = new Zend_Config_Xml("$path/config/config.xml", $GLOBAL->mode, true);
	
	
	$host = $CONFIG->database->params->host;
	$user = $CONFIG->database->params->username;
	$pswd = $CONFIG->database->params->password;
	$dbs = $CONFIG->database->params->dbname;

	$link = mysql_connect($host, $user, $pswd) or die(mysql_error());
	mysql_select_db($dbs, $link); 
	
	
	
?>